{% extends "base.html" %}

{% block title %}我的博客 - 首页{% endblock %}

{% block content %}
<div class="row">
    <div class="col-md-8">
        <h2>最新文章</h2>
        {% include 'partials/post_list.html' %}
    </div>
    <div class="col-md-4">
        <div class="card mb-4">
            <div class="card-header">
                关于我
            </div>
            <div class="card-body">
                <p>欢迎来到我的博客，这里分享我的学习和思考。</p>
            </div>
        </div>
        <div class="card">
            <div class="card-header">
                分类
            </div>
            <div class="card-body">
                <ul class="list-unstyled">
                    {% for category in categories %}
                    <li><a href="{{ url_for('blog.category_posts', category_id=category.id) }}">{{ category.name }}</a></li>
                    {% endfor %}
                </ul>
            </div>
        </div>
    </div>
</div>
{% endblock %}